from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys

class MainView(QMainWindow):

    def __init__(self, client):
        super(MainView, self).__init__()
        self.client = client
        self.resize(800, 950)
        self.setWindowTitle('Reader')

        #函数栈，用于返回按钮
        self.stack = []
        self.createInitView()

    def createInitView(self):
        self.tab = QTabWidget()
        self.tabs = [QWidget(), QWidget()]
        self.tab.addTab(self.tabs[0], "Main")
        self.tab.addTab(self.tabs[1], "Main")

if __name__ == '__main__':
    app=QApplication(sys.argv)
    v = MainView(None)
    v.show()
    sys.exit(app.exec_())
